package com.artogrid.framework.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.artogrid.framework.model.Contact;
import com.artogrid.framework.repository.mybatis.ContactMybatisDao;
import com.artogrid.framework.service.ContactMyBatisService;

@Service
public class ContactMyBatisServiceImpl implements ContactMyBatisService {

	@Autowired
	private ContactMybatisDao contactDao;

	@Override
	public Contact get(String id) {
		Contact contact = contactDao.get(id);
		System.out.println(contact.getName());
		return contact;
	}
	
}
